package com.fare.taluo.core.domain.config.line;

import java.util.Date;
import java.util.List;

import com.dayatang.domain.EntityRepository;
import com.fare.taluo.core.domain.config.city.PortEntity;

public interface FlightInfoEntityRepository extends EntityRepository {
	
	List<FlightInfoEntity> findByLine(String fromCityCode,String toCityCode);
	
	List<FlightInfoEntity> findByFlightNo(String flightNo);
	
	public List<FlightInfoEntity> findByLine(String fromCityCode,String toCityCode,String air_key);
	
	
	public List<FlightInfoEntity> findByLineCodeNotIn (String fromCityCode,String toCityCode,String companyCodeNotIn);
	
	public List<FlightInfoEntity> findByLineAndDate(String fromCityCode,String toCityCode,String date);
	
	public void save(FlightInfoEntity entity);
	
	public List<FlightInfoEntity> findByConditions(String company,String fromCityName,String toCityName,String flightNo,Date entryTime);
	
	public void tranSave(FlightInfoEntity entity);

	List<FlightInfoEntity> findByLine(List<PortEntity> fromCityCode, List<PortEntity> toCityCode, String air_key);

	List<FlightInfoEntity> findLineByCodes(String fromCityCode, String toCityCode, String carrier_key);
}

